public function ContentRepositoryInterface::getContentId

Return the content identifier for the provided content object for debugging purposes.

Parameters

object $content A content instance:

Return value

string|null $id id of the content object or null if unable to determine an id

File

drupal/core/vendor/symfony-cmf/routing/Symfony/Cmf/Component/Routing/ContentRepositoryInterface.php, line 36

Class

ContentRepositoryInterface
Interface used by the DynamicRouter to retrieve content by it's id when generating routes from content-id.

Namespace

Symfony\Cmf\Component\Routing

Code

public function getContentId($content);