You are here

public function RealEstate::setCategory in Styled Google Map 8.2

Sets the Real estate category.

Parameters

\Drupal\taxonomy\TermInterface $category: The Real estate category.

Return value

\Drupal\styled_google_map_demo\Entity\RealEstateInterface The called Real estate entity.

Overrides RealEstateInterface::setCategory

File

modules/demo/src/Entity/RealEstate.php, line 134

Class

RealEstate
Defines the Real estate entity.

Namespace

Drupal\styled_google_map_demo\Entity

Code

public function setCategory($category) {
  $this
    ->set('category', $category);
  return $this;
}