PropertyAdminManagerTrait.php in ThemeKey 8
File
src/PropertyAdminManagerTrait.php
View source
<?php
namespace Drupal\themekey;
use Drupal\Component\Plugin\PluginManagerInterface;
trait PropertyAdminManagerTrait {
private $propertyAdminManager;
protected function getPropertyAdminManager() {
if (!$this->propertyAdminManager) {
$this->propertyAdminManager = \Drupal::service('plugin.manager.themekey.property_admin');
}
return $this->propertyAdminManager;
}
public function setPropertyAdminManager(PluginManagerInterface $propertyAdminManager) {
$this->propertyAdminManager = $propertyAdminManager;
return $this;
}
}