Skip to content
Snippets Groups Projects

Resolve #3430164 "D11 readiness"

Merged Ankit Pathak requested to merge issue/entity_embed-3430164:3430164-d11-readiness into 8.x-1.x
Compare and
36 files
+ 191
382
Compare changes
  • Side-by-side
  • Inline
Files
36
@@ -90,7 +90,7 @@ abstract class EntityEmbedDisplayBase extends PluginBase implements ContainerFac
@@ -90,7 +90,7 @@ abstract class EntityEmbedDisplayBase extends PluginBase implements ContainerFac
/**
/**
* {@inheritdoc}
* {@inheritdoc}
*/
*/
public function access(AccountInterface $account = NULL) {
public function access(?AccountInterface $account = NULL) {
// @todo Add a hook_entity_embed_display_access()?
// @todo Add a hook_entity_embed_display_access()?
// Check that the plugin's registered entity types matches the current
// Check that the plugin's registered entity types matches the current
// entity type.
// entity type.
@@ -278,7 +278,7 @@ abstract class EntityEmbedDisplayBase extends PluginBase implements ContainerFac
@@ -278,7 +278,7 @@ abstract class EntityEmbedDisplayBase extends PluginBase implements ContainerFac
* on this, plus any of its subclasses. Right now, this is effectively a
* on this, plus any of its subclasses. Right now, this is effectively a
* global that breaks cacheability metadata.
* global that breaks cacheability metadata.
*
*
* @return \Drupal\Core\Entity\EntityInterface
* @return \Drupal\Core\Entity\EntityInterface|null
* The entity from the current context.
* The entity from the current context.
*/
*/
public function getEntityFromContext() {
public function getEntityFromContext() {
Loading