-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathModule8.php
More file actions
29 lines (22 loc) · 768 Bytes
/
Module8.php
File metadata and controls
29 lines (22 loc) · 768 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
namespace DrupalCodeBuilder\Generator;
use DrupalCodeBuilder\Definition\PropertyListInterface;
use DrupalCodeBuilder\Definition\PropertyDefinition;
use DrupalCodeBuilder\Definition\DeferredGeneratorDefinition;
/**
* Drupal 8 version of component.
*/
class Module8 extends Module {
/**
* {@inheritdoc}
*/
public static function addToGeneratorDefinition(PropertyListInterface $definition) {
parent::addToGeneratorDefinition($definition);
$definition->addProperties([
'tests' => DeferredGeneratorDefinition::createFromGeneratorType('Tests', 'boolean')
->setLabel("Simpletest test case class")
->setDescription('NOTICE: These are deprecated in Drupal 8.'),
]);
$definition->removeProperty('lifecycle');
}
}