You are here

protected function HtmlRouteProvider::getAddFormRoute in Mass Contact 8

Gets the add-form route.

Parameters

\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type.

Return value

\Symfony\Component\Routing\Route|null The generated route, if available.

Overrides DefaultHtmlRouteProvider::getAddFormRoute

File

src/Routing/HtmlRouteProvider.php, line 16

Class

HtmlRouteProvider
Route provider for mass contact message entities.

Namespace

Drupal\mass_contact\Routing

Code

protected function getAddFormRoute(EntityTypeInterface $entity_type) {
  $route = parent::getAddFormRoute($entity_type);
  $route
    ->setDefault('_title_callback', NULL);
  $route
    ->setDefault('_title', 'Mass Contact');
  return $route;
}