Skip to content
Snippets Groups Projects
Commit 81588609 authored by Ken Rickard's avatar Ken Rickard
Browse files

Cleans up DomainAccessActionBase.

parent 1d6da291
No related branches found
No related tags found
1 merge request!19Run drupal check and fix issues
......@@ -18,7 +18,7 @@ abstract class DomainAccessActionBase extends ConfigurableActionBase implements
use DependencyTrait;
/**
* The user role entity type.
* The action's entity type.
*
* @var \Drupal\Core\Entity\EntityTypeInterface
*/
......@@ -80,7 +80,7 @@ abstract class DomainAccessActionBase extends ConfigurableActionBase implements
*/
public function calculateDependencies() {
if (!empty($this->configuration['domain_id'])) {
$prefix = $this->entityType->getConfigPrefix() . '.';
$prefix = $this->entityType->getConfigDependencyKey() . '.';
$this->addDependency('config', $prefix . $this->configuration['domain_id']);
}
return $this->dependencies;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment