function EntityDisplayBase::handleHiddenType
Handles a component type of 'hidden'.
The logic of this method has been duplicated inline in the preSave() method so that this method may remain deprecated and trigger an error.
Parameters
string $name: The name of the component.
array $component: The component array.
Deprecated
in drupal:8.3.0 and is removed from drupal:9.0.0. No replacement is provided.
See also
https://www.drupal.org/node/2801513
File
-
core/
lib/ Drupal/ Core/ Entity/ EntityDisplayBase.php, line 291
Class
- EntityDisplayBase
- Provides a common base class for entity view and form displays.
Namespace
Drupal\Core\EntityCode
protected function handleHiddenType($name, array $component) {
@trigger_error(__METHOD__ . ' is deprecated in drupal:8.3.0 and is removed from drupal:9.0.0. No replacement is provided. See https://www.drupal.org/node/2801513', E_USER_DEPRECATED);
if (!isset($component['region']) && isset($component['type']) && $component['type'] === 'hidden') {
$this->removeComponent($name);
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.