trait PropertyAdminManagerTrait in ThemeKey 8
Hierarchy
- trait \Drupal\themekey\PropertyAdminManagerTrait
1 file declares its use of PropertyAdminManagerTrait
- ThemeKeyRuleForm.php in src/
Form/ ThemeKeyRuleForm.php - Contains Drupal\themekey\Form\ThemeKeyRuleForm.
File
- src/
PropertyAdminManagerTrait.php, line 7
Namespace
Drupal\themekeyView source
trait PropertyAdminManagerTrait {
/**
* @var
*/
private $propertyAdminManager;
/**
* Gets the ThemeKey Property manager.
*
* @return \Drupal\Component\Plugin\PluginManagerInterface
* The ThemeKey Property Admin manager.
*/
protected function getPropertyAdminManager() {
if (!$this->propertyAdminManager) {
$this->propertyAdminManager = \Drupal::service('plugin.manager.themekey.property_admin');
}
return $this->propertyAdminManager;
}
/**
* Sets the ThemeKey Property manager to use.
*
* @param \Drupal\Component\Plugin\PluginManagerInterface
* The ThemeKey Property manager.
*
* @return $this
*/
public function setPropertyAdminManager(PluginManagerInterface $propertyAdminManager) {
$this->propertyAdminManager = $propertyAdminManager;
return $this;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PropertyAdminManagerTrait:: |
private | property | @var | |
PropertyAdminManagerTrait:: |
protected | function | Gets the ThemeKey Property manager. | |
PropertyAdminManagerTrait:: |
public | function | Sets the ThemeKey Property manager to use. |