protected function DisplayLink::hasEqualOptions in Drupal 10
Same name and namespace in other branches
- 8 core/modules/views/src/Plugin/views/area/DisplayLink.php \Drupal\views\Plugin\views\area\DisplayLink::hasEqualOptions()
- 9 core/modules/views/src/Plugin/views/area/DisplayLink.php \Drupal\views\Plugin\views\area\DisplayLink::hasEqualOptions()
Check if the options of a views display are equal to the current display.
Parameters
string $display_id: The display ID to check.
string $option: The option to check.
Return value
bool Whether the option of the view display are equal to the current display or not.
1 call to DisplayLink::hasEqualOptions()
- DisplayLink::validate in core/
modules/ views/ src/ Plugin/ views/ area/ DisplayLink.php
File
- core/
modules/ views/ src/ Plugin/ views/ area/ DisplayLink.php, line 237
Class
- DisplayLink
- Views area display_link handler.
Namespace
Drupal\views\Plugin\views\areaCode
protected function hasEqualOptions($display_id, $option) {
$loaded_display = $this->view->displayHandlers
->get($display_id);
return $loaded_display
->getOption($option) === $this->displayHandler
->getOption($option);
}