You are here

public function ThemeSwitcherRule::getPluginCollections in Theme Switcher Rules 8

Gets the plugin collections used by this object.

Return value

\Drupal\Component\Plugin\LazyPluginCollection[] An array of plugin collections, keyed by the property name they use to store their configuration.

Overrides ObjectWithPluginCollectionInterface::getPluginCollections

File

src/Entity/ThemeSwitcherRule.php, line 147

Class

ThemeSwitcherRule
Defines the Theme Switcher Rule entity.

Namespace

Drupal\theme_switcher\Entity

Code

public function getPluginCollections() {
  return [
    'visibility' => $this
      ->getVisibilityConditions(),
  ];
}