code: public function getTableRegistry()
      {
          if (is_null($this->_tableRegistry)) {
              $objectTypeClass = Yii::$app->classes['ObjectTypeRegistry'];
              $this->_tableRegistry = [];
              if ($objectTypeClass::tableExists()) {
                  $om = $objectTypeClass::find()->all();
                  $this->_tableRegistry = ArrayHelper::index($om, 'name');
              }
          }
  
          return $this->_tableRegistry;
      }
docs: Get table registry.
  
  @return [[@doctodo return_type:getTableRegistry]] [[@doctodo return_description:getTableRegistry]]