Skip to content
Permalink
Browse files

[console] Fixed coding standards (#4072)

  • Loading branch information...
harold20 authored and enzolutions committed May 31, 2019
1 parent 4734956 commit ee79d2ea8b094dc2735be62f47b69accc4cd98f5
@@ -103,7 +103,7 @@ protected function configure()
'directory',
null,
InputOption::VALUE_OPTIONAL,
$this->trans('commands.config.export.arguments.directory')
$this->trans('commands.config.export.options.directory')
)->addOption(
'module',
null,
@@ -63,7 +63,7 @@ protected function configure()
'directory',
null,
InputOption::VALUE_OPTIONAL,
$this->trans('commands.config.import.arguments.directory')
$this->trans('commands.config.import.options.directory')
)
->setAliases(['cis']);
}
@@ -1,5 +1,10 @@
/**
* @file
*/

(function ($, Drupal) {
Drupal.AjaxCommands.prototype.{{ method }} = function (ajax, response, status) {
console.log(response.message);
}
})(jQuery, Drupal);

})(jQuery, Drupal);
@@ -16,5 +16,4 @@ services:
tags:
- { {{ tagsAsArray(tags)|join(', ') }} }
{% endif %}

{% endif %}
@@ -15,8 +15,8 @@ use Drupal\Core\Cache\Context\CacheContextInterface;

{% block class_declaration %}
/**
* Class {{ class }}.
*/
* Class {{ class }}.
*/
class {{ class }} implements CacheContextInterface {% endblock %}

{% block class_construct %}
@@ -25,29 +25,29 @@ class {{ class }} implements CacheContextInterface {% endblock %}
* Constructs a new {{ class }} object.
*/
public function __construct({{ servicesAsParameters(services)|join(', ') }}) {
{{ serviceClassInitialization(services) }}
{{ serviceClassInitialization(services) }}
}

{% endblock %}

{% block class_methods %}
/**
* {@inheritdoc}
*/
* {@inheritdoc}
*/
public static function getLabel() {
\Drupal::messenger()->addMessage('Lable of cache context');
}

/**
* {@inheritdoc}
*/
* {@inheritdoc}
*/
public function getContext() {
// Actual logic of context variation will lie here.
}

/**
* {@inheritdoc}
*/
* {@inheritdoc}
*/
public function getCacheableMetadata() {
return new CacheableMetadata();
}
@@ -1 +1 @@
<!-- Add you custom twig html here -->
<!-- Add you custom twig html here -->

0 comments on commit ee79d2e

Please sign in to comment.
You can’t perform that action at this time.