You are here

public function FrontendEnvironment::getPlugin in Build Hooks 3.x

Same name and namespace in other branches
  1. 8.2 src/Entity/FrontendEnvironment.php \Drupal\build_hooks\Entity\FrontendEnvironment::getPlugin()

Gets the frontend environment plugin for this environment.

Return value

\Drupal\build_hooks\Plugin\FrontendEnvironmentInterface Plugin.

Overrides FrontendEnvironmentInterface::getPlugin

File

src/Entity/FrontendEnvironment.php, line 155

Class

FrontendEnvironment
Defines the Frontend environment entity.

Namespace

Drupal\build_hooks\Entity

Code

public function getPlugin() {
  return $this
    ->getPluginCollection()
    ->get($this->plugin);
}