You are here

public function AliasTypeManager::getVisibleDefinitions in View Mode Page 3.2.x

Same name and namespace in other branches
  1. 8.3 src/AliasTypeManager.php \Drupal\view_mode_page\AliasTypeManager::getVisibleDefinitions()
  2. 4.0.x src/AliasTypeManager.php \Drupal\view_mode_page\AliasTypeManager::getVisibleDefinitions()

Gets the definition of all visible plugins for this type.

Return value

array An array of plugin definitions (empty array if no definitions were found). Keys are plugin IDs.

File

src/AliasTypeManager.php, line 64

Class

AliasTypeManager
Manages view_mode_page alias type plugins.

Namespace

Drupal\view_mode_page

Code

public function getVisibleDefinitions() {
  $definitions = $this
    ->getDefinitions();
  unset($definitions['broken']);
  return $definitions;
}