You are here

public function RealEstate::getCategory in Styled Google Map 8.2

Gets the Real estate name.

Return value

\Drupal\taxonomy\TermInterface Category of the Real estate.

Overrides RealEstateInterface::getCategory

File

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

Class

RealEstate
Defines the Real estate entity.

Namespace

Drupal\styled_google_map_demo\Entity

Code

public function getCategory() {
  return $this
    ->get('category')->entity;
}