public function NodeRevisionDelete::getContentTypeConfig in Node Revision Delete 8
Return the configuration for a content type.
Parameters
string $content_type: Content type machine name.
Return value
array An array with the configuration for the content type.
Overrides NodeRevisionDeleteInterface::getContentTypeConfig
1 call to NodeRevisionDelete::getContentTypeConfig()
- NodeRevisionDelete::getContentTypeConfigWithRelativeTime in src/
NodeRevisionDelete.php - Return the configuration for a content type with the relative time.
File
- src/
NodeRevisionDelete.php, line 443
Class
- NodeRevisionDelete
- Class NodeRevisionDelete.
Namespace
Drupal\node_revision_deleteCode
public function getContentTypeConfig($content_type) {
// Getting the variables with the content types configuration.
$third_party_settings = $this->configFactory
->get('node.type.' . $content_type)
->get('third_party_settings');
if (isset($third_party_settings['node_revision_delete'])) {
return $third_party_settings['node_revision_delete'];
}
return [];
}