You are here

protected function EasyEmailForm::isEntityTypePreview in Easy Email 2.0.x

Same name and namespace in other branches
  1. 8 src/Form/EasyEmailForm.php \Drupal\easy_email\Form\EasyEmailForm::isEntityTypePreview()

Return value

bool

3 calls to EasyEmailForm::isEntityTypePreview()
EasyEmailForm::actions in src/Form/EasyEmailForm.php
Returns an array of supported actions for the current entity form.
EasyEmailForm::buildForm in src/Form/EasyEmailForm.php
Form constructor.
EasyEmailForm::validateForm in src/Form/EasyEmailForm.php
Button-level validation handlers are highly discouraged for entity forms, as they will prevent entity validation from running. If the entity is going to be saved during the form submission, this method should be manually invoked from the button-level…

File

src/Form/EasyEmailForm.php, line 62

Class

EasyEmailForm
Form controller for Email edit forms.

Namespace

Drupal\easy_email\Form

Code

protected function isEntityTypePreview() {
  return $this
    ->getRouteMatch()
    ->getRouteName() === 'entity.easy_email_type.preview';
}