You are here

public function Host::setSource in http:BL 8

Sets the value for the source field of a host entity.

Parameters

string $source: The new Host source.

Return value

\Drupal\httpbl\HostInterface The called host entity.

Overrides HostInterface::setSource

File

src/Entity/Host.php, line 122
Contains \Drupal\httpbl\Entity\Host.

Class

Host
Defines the host entity class.

Namespace

Drupal\httpbl\Entity

Code

public function setSource($source) {
  $this
    ->get('source')->value = $source;
  return $this;
}