public function ContextAwarePluginBase::__get in Drupal 8
Implements magic __get() method.
File
- core/
lib/ Drupal/ Component/ Plugin/ ContextAwarePluginBase.php, line 67
Class
- ContextAwarePluginBase
- Base class for plugins that are context aware.
Namespace
Drupal\Component\PluginCode
public function __get($name) {
if ($name === 'contexts') {
@trigger_error('The $contexts property is deprecated in Drupal 8.8.0 and will be removed before Drupal 9.0.0. Use methods of \\Drupal\\Component\\Plugin\\ContextAwarePluginInterface instead. See https://www.drupal.org/project/drupal/issues/3080631 for more information.', E_USER_DEPRECATED);
return $this->contexts;
}
}