You are here

public function GroupContentEnablerInterface::getContentTypeConfigId in Group 8

Returns a safe, unique configuration ID for a group content type.

By default we use GROUP_TYPE_ID-PLUGIN_ID-DERIVATIVE_ID, but feel free to use any other means of identifying group content types.

Please do not return any invalid characters in the ID as it will crash the website. Refer to ConfigBase::validateName() for valid characters.

Return value

string The safe ID to use as the configuration name.

See also

\Drupal\Core\Config\ConfigBase::validateName()

1 method overrides GroupContentEnablerInterface::getContentTypeConfigId()
GroupContentEnablerBase::getContentTypeConfigId in src/Plugin/GroupContentEnablerBase.php
Returns a safe, unique configuration ID for a group content type.

File

src/Plugin/GroupContentEnablerInterface.php, line 155

Class

GroupContentEnablerInterface
Defines an interface for pluggable GroupContentEnabler back-ends.

Namespace

Drupal\group\Plugin

Code

public function getContentTypeConfigId();