Skip to content

7.x-1.0-beta4

Compare
Choose a tag to compare
@drupol drupol released this 25 Jun 18:02
· 55 commits to 7.x-1.x since this release

Mostly a bugfix release but some important stuff has changed since beta3.

The way CTools and Annotated plugins are declared has been changed.

Using PHP before:

  /**
   * {@inheritdoc}
   */
  public function getContainerDefinition() {
    $services = array();
    $parameters['ctools_plugins_auto_discovery']['service_container_test_ctools'] = TRUE;

    return array(
      'parameters' => $parameters,
      'services' => $services,
    );
  }

Using PHP now:

  /**
   * {@inheritdoc}
   */
  public function getContainerDefinition() {
    $services = array();
    $parameters['ctools_plugins_auto_discovery.service_container_test_ctools'] = array('service_container_test_ctools');

    return array(
      'parameters' => $parameters,
      'services' => $services,
    );
  }

Using Yaml before:

parameters:
  annotated_plugins_auto_discovery:
    - { owner: 'sc_doctrine_test', type: 'Plugin1', directory: 'Plugin/Plugin1', class: 'Drupal\Component\Annotation\Plugin' }
    - { owner: 'sc_doctrine_test', type: 'Plugin2', directory: 'Plugin/Plugin2', class: 'Drupal\Component\Annotation\Plugin' }

Using Yaml now:

parameters:
  annotated_plugins_auto_discovery.service_container_annotation_discovery_test:
    - { owner: 'sc_doctrine_test', type: 'Plugin1', directory: 'Plugin/Plugin1', class: 'Drupal\Component\Annotation\Plugin' }
    - { owner: 'sc_doctrine_test', type: 'Plugin2', directory: 'Plugin/Plugin2', class: 'Drupal\Component\Annotation\Plugin' }