code: private function getFieldValue(?PageModel $page): string
      {
          if (null === $page) {
              return '';
          }
  
          return (string) $page->{$this->field};
      }
docs: Returns a field value from the page model.