diff --git a/README.md b/README.md index a3cc01c..9a260f0 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,8 @@ Entity Embed can be installed via the * Click on the 'E' button in the text editor. * Enter part of the title of the entity you're looking for and select one of the search results. -* If the entity you select is a node entity, for **Display as** you can choose one of the following options: +* If the entity you select is a node entity, for **Display as** you can choose + one of the following options: * Entity ID * Label * Full content diff --git a/src/EntityEmbedDisplay/EntityEmbedDisplayManager.php b/src/EntityEmbedDisplay/EntityEmbedDisplayManager.php index c77e4fe..dca160f 100644 --- a/src/EntityEmbedDisplay/EntityEmbedDisplayManager.php +++ b/src/EntityEmbedDisplay/EntityEmbedDisplayManager.php @@ -108,9 +108,9 @@ class EntityEmbedDisplayManager extends DefaultPluginManager { * @return array * Returns plugin definitions that should be displayed in the UI. */ - public function filterExposedDefinitions(array $definitions) { + protected function filterExposedDefinitions(array $definitions) { return array_filter($definitions, function($definition) { - return isset($definition['no_ui']) && $definition['no_ui'] == FALSE; + return empty($definition['no_ui']); }); } diff --git a/src/Tests/EntityEmbedUpdateHookTest.php b/src/Tests/EntityEmbedUpdateHookTest.php index 5830a93..7138a03 100644 --- a/src/Tests/EntityEmbedUpdateHookTest.php +++ b/src/Tests/EntityEmbedUpdateHookTest.php @@ -30,7 +30,7 @@ class EntityEmbedUpdateHookTest extends UpdatePathTestBase { } /** - * Tests hook_post_update_NAME(). + * Tests entity_embed_update_8002(). */ public function testPostUpdate() { $this->runUpdates();