You are here

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

Title callback for add page.

Parameters

string $eck_entity_bundle: The bundle id.

Return value

string The title.

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

File

src/Controller/EckContentController.php, line 124

Class

EckContentController
Provides a content controller for entities.

Namespace

Drupal\eck\Controller

Code

public function addContentPageTitle($eck_entity_bundle) {
  $eck_entity_bundle = EckEntityBundle::load($eck_entity_bundle);
  return $this
    ->t('Add %label content', [
    '%label' => $eck_entity_bundle
      ->get('name'),
  ]);
}