protected function SearchBaseForm::searchIdExists in Entity Share 8.3
Same name and namespace in other branches
- 8.2 modules/entity_share_server/src/Form/SearchBaseForm.php \Drupal\entity_share_server\Form\SearchBaseForm::searchIdExists()
Check if the search exists.
Return value
bool True if the search exists. FALSE otherwise.
4 calls to SearchBaseForm::searchIdExists()
- SearchDeleteForm::actions in modules/
entity_share_server/ src/ Form/ SearchDeleteForm.php - Returns an array of supported actions for the current entity form.
- SearchDeleteForm::form in modules/
entity_share_server/ src/ Form/ SearchDeleteForm.php - Gets the actual form array to be built.
- SearchEditForm::actions in modules/
entity_share_server/ src/ Form/ SearchEditForm.php - Returns an array of supported actions for the current entity form.
- SearchEditForm::form in modules/
entity_share_server/ src/ Form/ SearchEditForm.php - Gets the actual form array to be built.
File
- modules/
entity_share_server/ src/ Form/ SearchBaseForm.php, line 72
Class
- SearchBaseForm
- Base class for search form.
Namespace
Drupal\entity_share_server\FormCode
protected function searchIdExists() {
/** @var \Drupal\entity_share_server\Entity\ChannelInterface $channel */
$channel = $this->entity;
$channel_searches = $channel
->get('channel_searches');
$search_id = $this
->getsearchId();
$search_exists = FALSE;
if (isset($channel_searches[$search_id])) {
$search_exists = TRUE;
}
return $search_exists;
}