API page: https://api.drupal.org/api/drupal/core%21modules%21views%21src%21Plugin%...

The class docblock reads "Constructs a new EntityReference object.". No, it does not.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

cilefen created an issue. See original summary.

pandaski’s picture

And core/modules/views/src/Plugin/views/display/EntityReference.php is the source :)

  /**
   * Constructs a new EntityReference object.
   *
   * @param array $configuration
   *   A configuration array containing information about the plugin instance.
   * @param string $plugin_id
   *   The plugin_id for the plugin instance.
   * @param mixed $plugin_definition
   *   The plugin implementation definition.
   * @param \Drupal\Core\Database\Connection $connection
   *   The database connection.
   */
  public function __construct(array $configuration, $plugin_id, $plugin_definition, Connection $connection) {
    parent::__construct($configuration, $plugin_id, $plugin_definition);
    $this->connection = $connection;
  }
cilefen’s picture

copypasta

kkalaskar’s picture

@cilefen

I changed Constructs a new EntityReference object. to Constructs a new StringFilter object.. Please have a look.

kkalaskar’s picture

Status: Active » Needs review
andypost’s picture

Status: Needs review » Reviewed & tested by the community

Nice

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Created @cilefen for filing the issue.

Committed and pushed be969606bc to 8.8.x and 38021e07db to 8.7.x. Thanks!

  • alexpott committed be96960 on 8.8.x
    Issue #3052059 by kkalaskar, cilefen: StringFilter docblock references...

  • alexpott committed 38021e0 on 8.7.x
    Issue #3052059 by kkalaskar, cilefen: StringFilter docblock references...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.