DuplicateConfigAction.php

Same filename in other branches
  1. 11.x core/modules/config/tests/config_action_duplicate_test/src/Plugin/ConfigAction/DuplicateConfigAction.php

Namespace

Drupal\config_action_duplicate_test\Plugin\ConfigAction

File

core/modules/config/tests/config_action_duplicate_test/src/Plugin/ConfigAction/DuplicateConfigAction.php

View source
<?php

namespace Drupal\config_action_duplicate_test\Plugin\ConfigAction;

use Drupal\Core\Config\Action\Attribute\ConfigAction;
use Drupal\Core\Config\Action\ConfigActionPluginInterface;
use Drupal\Core\StringTranslation\TranslatableMarkup;
final class DuplicateConfigAction implements ConfigActionPluginInterface {
    
    /**
     * {@inheritdoc}
     */
    public function apply(string $configName, mixed $value) : void {
        // This method should never be called.
        throw new \BadMethodCallException();
    }

}

Classes

Title Deprecated Summary
DuplicateConfigAction

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.