You are here

public function LinkCheckerLink::setParentEntityLangcode in Link checker 8

Sets a langcode of entity translation where the link was found.

Parameters

string $langcode: Langcode.

Return value

$this

Overrides LinkCheckerLinkInterface::setParentEntityLangcode

File

src/Entity/LinkCheckerLink.php, line 217

Class

LinkCheckerLink
Defines the linkcheckerlink type entity.

Namespace

Drupal\linkchecker\Entity

Code

public function setParentEntityLangcode($langcode) {
  $this
    ->set('entity_langcode', $langcode);
  return $this;
}