You are here

public function EckContentController::addPageTitle in Entity Construction Kit (ECK) 8

Title callback for add page.

Parameters

\Drupal\eck\EckEntityTypeInterface $eck_entity_type: The entity type.

Return value

string The title.

1 string reference to 'EckContentController::addPageTitle'
eck.routing.yml in ./eck.routing.yml
eck.routing.yml

File

src/Controller/EckContentController.php, line 111

Class

EckContentController
Provides a content controller for entities.

Namespace

Drupal\eck\Controller

Code

public function addPageTitle(EckEntityTypeInterface $eck_entity_type) {
  return $this
    ->t('Add %label content', [
    '%label' => $eck_entity_type
      ->label(),
  ]);
}