protected function FilterBaseForm::filterIdExists in Entity Share 8.3
Same name and namespace in other branches
- 8 modules/entity_share_server/src/Form/FilterBaseForm.php \Drupal\entity_share_server\Form\FilterBaseForm::filterIdExists()
- 8.2 modules/entity_share_server/src/Form/FilterBaseForm.php \Drupal\entity_share_server\Form\FilterBaseForm::filterIdExists()
Check if the filter exists.
Return value
bool True if the filter exists. FALSE otherwise.
4 calls to FilterBaseForm::filterIdExists()
- FilterDeleteForm::actions in modules/
entity_share_server/ src/ Form/ FilterDeleteForm.php - Returns an array of supported actions for the current entity form.
- FilterDeleteForm::form in modules/
entity_share_server/ src/ Form/ FilterDeleteForm.php - Gets the actual form array to be built.
- FilterEditForm::actions in modules/
entity_share_server/ src/ Form/ FilterEditForm.php - Returns an array of supported actions for the current entity form.
- FilterEditForm::form in modules/
entity_share_server/ src/ Form/ FilterEditForm.php - Gets the actual form array to be built.
File
- modules/
entity_share_server/ src/ Form/ FilterBaseForm.php, line 159
Class
- FilterBaseForm
- Base class for filter form.
Namespace
Drupal\entity_share_server\FormCode
protected function filterIdExists() {
/** @var \Drupal\entity_share_server\Entity\ChannelInterface $channel */
$channel = $this->entity;
$channel_filters = $channel
->get('channel_filters');
$filter_id = $this
->getFilterId();
$filter_exists = FALSE;
if (isset($channel_filters[$filter_id])) {
$filter_exists = TRUE;
}
return $filter_exists;
}