function DisplayPluginBase::applyDisplayCachablityMetadata

Applies the cacheability of the current display to the given render array.

Parameters

array $element: The render array with updated cacheability metadata.

Deprecated

in drupal:8.4.0 and is removed from drupal:9.0.0. Use DisplayPluginBase::applyDisplayCacheabilityMetadata instead.

See also

\Drupal\views\Plugin\views\display\DisplayPluginBase::applyDisplayCacheabilityMetadata()

File

core/modules/views/src/Plugin/views/display/DisplayPluginBase.php, line 2226

Class

DisplayPluginBase
Base class for views display plugins.

Namespace

Drupal\views\Plugin\views\display

Code

protected function applyDisplayCachablityMetadata(array &$element) {
    @trigger_error('The DisplayPluginBase::applyDisplayCachablityMetadata method is deprecated since version 8.4 and will be removed in 9.0. Use DisplayPluginBase::applyDisplayCacheabilityMetadata instead.', E_USER_DEPRECATED);
    $this->applyDisplayCacheabilityMetadata($element);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.